package com.atguigu.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 *  1.整合mybatis-plus依赖
 *  2.配置数据源（数据库驱动）；配置mybatis-plus(@MapperScan和mapper映射文件)
 *
 *
 *      逻辑删除：#####################################
 *      1，配置全局的逻辑删除规则（省略）
 *      2.配置逻辑删除的组件BEan（省略）
 *      3.实体类上加上@TableLogic 注解
 *
 *
 */
@EnableRedisHttpSession
@EnableFeignClients(basePackages = "com.atguigu.gulimall.product.feign")
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.atguigu.gulimall.product.dao")
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
